echo -n "TCP(Y/N)[Y]: "
read option
option=$(echo ${option:-Y} | tr '[:lower:]' '[:upper:]')
case $option in
    Y|YES) arg1="TCP" ;;
    N|NO) arg1="LOCAL" ;;
    *) echo "Argument error"; exit ;;
esac

echo -n "\
1) SIZE
2) WRAP
[1]: "
read option
option=$(echo ${option:-1} | tr '[:lower:]' '[:upper:]')
case $option in
    1) arg2="SIZE" ;;
    2) arg2="WRAP" ;;
    *) echo "Argument error"; exit ;;
esac

$1 $arg1 $arg2
